package com.day03;

public class Exercise {
    public static void main(String[] args) {
        StringBuffer a = new StringBuffer("hello");
        StringBuffer b = new StringBuffer("world");
        Exercise exercise = new Exercise();
        exercise.transfer(a, b);
        System.out.println("a=" + a);
        System.out.println("b=" + b);
    }

    public void transfer(StringBuffer x, StringBuffer y) {
        x.append(y);
        x = y;
        System.out.println("x=" + x);
        System.out.println("y=" + y);
    }
}
